package com.chinasofti.params;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Demo02 {
    public static void main(String[] args) {
        //method();
        //method1();
        //method2();
        //method3();
    }

    private static void method3() {
        Map<String,String> map = Map.ofEntries(Map.entry("zhangsan","江苏"),
                Map.entry("lisi","南京"),Map.entry("wangwu","北京"));
        System.out.println("map = " + map);
    }

    private static void method2() {
        Map<String,String> map = Map.of("吉林","吉林","北京","北京");
        System.out.println("map = " + map);
    }

    private static void method1() {
        Set<String> set = Set.of("a","b","c","d","e");
        System.out.println("set = " + set);
    }

    private static void method() {
        List<String> list = List.of("a","b","c","d");
        //list.add("e");
        //list.remove("a");
        //list.set(0,"A");
        System.out.println("list = " + list);
        ArrayList<String> list2 = new ArrayList<>(List.of("e","f","g","h"));
    }
}
